<template>
  <el-card>
    <el-table :data="tableList" style="width: 100%" border>
      <el-table-column prop="merchantName" label="商家名称" align="center" />
      <el-table-column prop="writeOffCode" label="核销码" align="center" />
      <el-table-column prop="id" label="核销用户ID" align="center" />
      <el-table-column prop="writeOffUser" label="核销用户昵称" align="center" />
      <el-table-column prop="status" label="核销状态" align="center" />
      <el-table-column
        prop="writeOffTime"
        label="核销时间"
        align="center"
        :formatter="dateFormatter"
      />
    </el-table>
  </el-card>
</template>

<script setup lang="ts">
import { formatDate, dateFormatter } from '@/utils/formatTime'
import { DICT_TYPE } from '@/utils/dict'
import * as ActivityInfoApi from '@/api/blind/activityInfo'

const { data } = defineProps<{ data }>()

// 数据列表
const tableList = [
  {
    id: 1,
    merchantName: '月满大江',
    nickmerchantName: '璐璐',
    writeOffUser: '张三',
    writeOffTime: 1704864872000,
    status: '未核销',
    writeOffCode: '1704864872000'
  },
  {
    id: 2,
    merchantName: 'KTV',
    nickName: '雅雅',
    writeOffUser: '张三',
    writeOffTime: 1704864872000,
    status: '未核销',
    writeOffCode: '1704864872000'
  }
]
</script>
<style scoped lang="scss">
.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
</style>
